<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!--
Template Name: Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.1.1
Version: 2.0.2
Author: KeenThemes
Website: http://www.keenthemes.com/
Contact: support@keenthemes.com
Purchase: http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?ref=keenthemes
License: You must have a valid license purchased only from themeforest(the above link) in order to legally use the theme for your project.
-->

<!--[if IE 8]>
<html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]>
<html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en"> <!--<![endif]-->

<!-- Head BEGIN -->
<head>
    <meta charset="utf-8">
    <title>Shopping cart | Metronic Shop UI</title>

    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <meta content="Metronic Shop UI description" name="description">
    <meta content="Metronic Shop UI keywords" name="keywords">
    <meta content="keenthemes" name="author">

    <meta property="og:site_name" content="-CUSTOMER VALUE-">
    <meta property="og:title" content="-CUSTOMER VALUE-">
    <meta property="og:description" content="-CUSTOMER VALUE-">
    <meta property="og:type" content="website">
    <meta property="og:image" content="-CUSTOMER VALUE-"><!-- link to image for socio -->
    <meta property="og:url" content="-CUSTOMER VALUE-">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="/favicon.ico" rel="SHORTCUT ICON" type="image/ico">

    <!-- Fonts START -->
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet"
          type="text/css">
    <link href="http://fonts.googleapis.com/css?family=PT+Sans+Narrow&subset=all" rel="stylesheet" type="text/css">
    <!-- Fonts END -->

    <!-- Global styles START -->
    <link rel="stylesheet" type="text/css" href="http://www.jq22.com/jquery/font-awesome.4.6.0.css">
    <link href="../bootstrap/js/project/user/shop/shoppingCart/css/bootstrap.min.css" rel="stylesheet">
    <!-- Global styles END -->

    <!-- Page level plugin styles START -->
    <link href="../bootstrap/user/plugins/fancybox/source/jquery.fancybox.css" rel="stylesheet">
    <link href="../bootstrap/user/plugins/bxslider/jquery.bxslider.css" rel="stylesheet">
    <!-- Page level plugin styles END -->

    <!-- Theme styles START -->
    <link href="../bootstrap/user/css/style-metronic.css" rel="stylesheet" type="text/css">
    <link href="../bootstrap/user/css/style.css" rel="stylesheet" type="text/css">
    <link href="../bootstrap/user/css/style-responsive.css" rel="stylesheet" type="text/css">
    <link href="../bootstrap/user/css/custom.css" rel="stylesheet" type="text/css">
    <!-- Theme styles END -->
    <link href="../layui/css/layui.css" rel="stylesheet">
</head>
<!-- Head END -->

<!-- Body BEGIN -->
<body>
<div id="wrapper">
    <!-- BEGIN TOP BAR -->
    <div th:include="common/userShopHead :: head"></div>
    <!-- END TOP BAR -->
    <div th:include="common/userShopHead :: head-navigation"></div>
    <!-- BEGIN HEADER -->
    <!--  <div th:include="common/userShopHead :: head-navigation"></div>-->
    <!-- END HEADER -->


    <div class="main">
        <div class="container">
            <!-- BEGIN SIDEBAR & CONTENT -->
            <div class="row margin-bottom-40">
                <!-- BEGIN CONTENT -->

                <div class="col-md-12 col-sm-12">
                    <div class="form-group">
                        <h3 style="margin-bottom:0.1cm">填写收货地址</h3>
                        <div class="" style="margin-bottom:0.5cm"  >
                            <input  required  type="text" class="form-control"  placeholder="收货地址" name="delivery_addr"/>
                        </div>
                    </div>
                    <h2 style="margin-bottom:0.2cm">确认订单信息</h2>


                    <div class="shopping-cart-page">
                        <div class="shopping-cart-data clearfix">
                            <div class="table-wrapper-responsive">

                                <table summary="Shopping cart111">
                                    <tr>
                                        <th class="shopping-cart-image">图片</th>
                                        <th class="shopping-cart-description" style=" text-align:center; ">商品属性</th>
                                        <th class="shopping-cart-quantity">数量</th>
                                        <th class="shopping-cart-price">单价</th>
                                        <th class="shopping-cart-total" colspan="2">总价</th>
                                    </tr>
                                    <!--th:each=${shopList['orderDetail']}-->
                                    <!--对象名.user[0].name这样子-->
                                    <!--<tr th:each="shopList.orderDetail[0]">-->
                                    <tr th:each="com_list:${shopList['orderDetail']}">
                                        <td class="shopping-cart-image">
                                            <!--<a href="#"><img-->
                                                    <!--:src="item.pageaddr+item.saveFileName"-->
                                                    <!--alt="Berry Lace Dress"></a>-->
                                            <a href="#"><img
                                                    th:src="@{${com_list.pageaddr}+${com_list.saveFileName}}"
                                                    alt="Berry Lace Dress"></a>
                                        </td>
                                        <td class="shopping-cart-description" style=" text-align:center; ">
                                            <!--<h3><a href="#">Cool green dress with red bell</a></h3>-->
                                            <!--<p><strong>Item 1</strong> - Color: Green; Size: S</p>-->
                                            <!--<em>More info is here</em>-->
                                            <strong><span></span><span th:text="${com_list.commodityName}"></span></strong>
                                        </td>

                                        <td class="shopping-cart-quantity">
                                            <div class="product-quantity">
                                                <span class="input-group-btn"><button
                                                        class="btn quantity-up bootstrap-touchspin-up" type="button"
                                                        @click="addCardNum($event,0)"><i
                                                         class="fa fa-angle-up" ></i></button></span>
                                                <input v-if="0 == 0" id="product-quantity"   th:value="${com_list.num}" type="text"
                                                       readonly
                                                       class="form-control input-sm" ref="input1">
                                                <span class="input-group-btn"><button
                                                        class="btn quantity-down bootstrap-touchspin-down"
                                                        type="button" @click="delCardNum($event,0)"><i
                                                        class="fa fa-angle-down"></i></button></span>
                                            </div>
                                        </td>
                                        <td class="shopping-cart-price">
                                            <strong><span th:text="${com_list.onePrice}">¥</span></strong>
                                        </td>
                                        <td class="shopping-cart-total">
                                            <strong><span th:text="${com_list.price}">¥</span></strong>
                                        </td>
                                        <td class="del-goods-col">
                                            <a class="del-goods" href="#"><i class="fa fa-times"></i></a>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="shopping-total">
                                <!--<tr th:each="com_list:${shopList['orderDetail']}">-->
                                <ul >
                                    <li>
                                        <em>小计</em>
                                        <strong><span th:text="${shopList.allPrices}" id="xiaoji" th:name="xiaoji">¥</span></strong>
                                        <!--<strong class="price"><span>¥</span>{{shopList.allPrices}}</strong>-->
                                    </li>
                                    <li>
                                        <em>运费</em>
                                        <strong class="price"><span>¥</span>0</strong>
                                    </li>
                                    <li class="shopping-total-price">
                                        <em>总计</em>
                                        <strong><span th:text="${shopList.allPrices}">¥</span></strong>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <!--th:id="${shopList.bigOrderCode+','+shopList.allPrices}"-->
                        <a class="btn btn-primary" type="submit" onclick="pay(id)" ref="myelement"  th:id="${shopList.bigOrderCode+','+shopList.allPrices}">提交订单 <i class="fa fa-check"></i>
                        </a>
                    </div>
                </div>
                <!-- END CONTENT -->
            </div>

        </div>
    </div>
    <!-- BEGIN STEPS -->
    <div class="steps3 steps3red">
        <div class="container">
            <div class="row">
                <div class="col-md-4 steps3-col">
                    <i class="fa fa-truck"></i>
                    <div>
                        <h2>Free shipping</h2>
                        <em>Express delivery withing 3 days</em>
                    </div>
                    <span>&nbsp;</span>
                </div>
                <div class="col-md-4 steps3-col">
                    <i class="fa fa-gift"></i>
                    <div>
                        <h2>Daily Gifts</h2>
                        <em>3 Gifts daily for lucky customers</em>
                    </div>
                    <span>&nbsp;</span>
                </div>
                <div class="col-md-4 steps3-col">
                    <i class="fa fa-phone"></i>
                    <div>
                        <h2>477 505 8877</h2>
                        <em>24/7 customer care available</em>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- END STEPS -->

    <!-- BEGIN PRE-FOOTER -->
    <div class="pre-footer">
        <div class="container">
            <div class="row">
                <!-- BEGIN BOTTOM ABOUT BLOCK -->
                <div class="col-md-3 col-sm-6 pre-footer-col">
                    <h2>About us</h2>
                    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam sit nonummy nibh euismod
                        tincidunt
                        ut laoreet dolore magna aliquarm erat sit volutpat. Nostrud exerci tation ullamcorper suscipit
                        lobortis nisl aliquip commodo consequat. </p>
                    <p>Duis autem vel eum iriure dolor vulputate velit esse molestie at dolore.</p>
                </div>
                <!-- END BOTTOM ABOUT BLOCK -->
                <!-- BEGIN BOTTOM INFO BLOCK -->
                <div class="col-md-3 col-sm-6 pre-footer-col">
                    <h2>Information</h2>
                    <ul class="list-unstyled">
                        <li><i class="fa fa-angle-right"></i> <a href="#">Delivery Information</a></li>
                        <li><i class="fa fa-angle-right"></i> <a href="#">Customer Service</a></li>
                        <li><i class="fa fa-angle-right"></i> <a href="#">Order Tracking</a></li>
                        <li><i class="fa fa-angle-right"></i> <a href="#">Shipping & Returns</a></li>
                        <li><i class="fa fa-angle-right"></i> <a href="contacts.html">Contact Us</a></li>
                        <li><i class="fa fa-angle-right"></i> <a href="#">Careers</a></li>
                        <li><i class="fa fa-angle-right"></i> <a href="#">Payment Methods</a></li>
                    </ul>
                </div>
                <!-- END INFO BLOCK -->
                <!-- BEGIN TWITTER BLOCK -->
                <div class="col-md-3 col-sm-6 pre-footer-col">
                    <h2>Latest Tweets</h2>
                    <dl class="dl-horizontal f-twitter">
                        <dt><i class="fa fa-twitter"></i></dt>
                        <dd>
                            <a href="#">@keenthemes</a>
                            Imperdiet condimentum diam dolor lorem sit consectetur adipiscing
                            <span>3 min ago</span>
                        </dd>
                    </dl>
                    <dl class="dl-horizontal f-twitter">
                        <dt><i class="fa fa-twitter"></i></dt>
                        <dd>
                            <a href="#">@keenthemes</a>
                            Imperdiet condimentum diam dolor lorem sit consectetur adipiscing
                            <span>3 min ago</span>
                        </dd>
                    </dl>
                    <dl class="dl-horizontal f-twitter">
                        <dt><i class="fa fa-twitter"></i></dt>
                        <dd>
                            <a href="#">@keenthemes</a>
                            Imperdiet condimentum diam dolor lorem sit consectetur adipiscing
                            <span>3 min ago</span>
                        </dd>
                    </dl>
                </div>
                <!-- END TWITTER BLOCK -->
                <!-- BEGIN BOTTOM CONTACTS -->
                <div class="col-md-3 col-sm-6 pre-footer-col">
                    <h2>Our Contacts</h2>
                    <address class="margin-bottom-40">
                        35, Lorem Lis Street, Park Ave<br>
                        California, US<br>
                        Phone: 300 323 3456<br>
                        Fax: 300 323 1456<br>
                        Email: <a href="mailto:info@metronic.com">info@metronic.com</a><br>
                        Skype: <a href="skype:metronic">metronic</a>
                    </address>
                </div>
                <!-- END BOTTOM CONTACTS -->
            </div>
            <hr>
            <div class="row">
                <!-- BEGIN SOCIAL ICONS -->
                <div class="col-md-6 col-sm-6">
                    <ul class="social-icons">
                        <li><a class="rss" data-original-title="rss" href="#"></a></li>
                        <li><a class="facebook" data-original-title="facebook" href="#"></a></li>
                        <li><a class="twitter" data-original-title="twitter" href="#"></a></li>
                        <li><a class="googleplus" data-original-title="googleplus" href="#"></a></li>
                        <li><a class="linkedin" data-original-title="linkedin" href="#"></a></li>
                        <li><a class="youtube" data-original-title="youtube" href="#"></a></li>
                        <li><a class="vimeo" data-original-title="vimeo" href="#"></a></li>
                        <li><a class="skype" data-original-title="skype" href="#"></a></li>
                    </ul>
                </div>
                <!-- END SOCIAL ICONS -->
                <!-- BEGIN NEWLETTER -->
                <div class="col-md-6 col-sm-6">
                    <div class="pre-footer-subscribe-box pull-right">
                        <h2>Newsletter</h2>
                        <form action="#">
                            <div class="input-group">
                                <input type="text" placeholder="youremail@mail.com" class="form-control">
                                <span class="input-group-btn">
                    <button class="btn btn-primary" type="submit">Subscribe</button>
                  </span>
                            </div>
                        </form>
                    </div>
                </div>
                <!-- END NEWLETTER -->
            </div>
        </div>
    </div>
    <!-- END PRE-FOOTER -->

    <!-- BEGIN FOOTER -->
    <div class="footer padding-top-15">
        <div class="container">
            <div class="row">
                <!-- BEGIN COPYRIGHT -->
                <div class="col-md-6 col-sm-6 padding-top-10">
                    2014 © Metronic Shop UI. ALL Rights Reserved.
                </div>
                <!-- END COPYRIGHT -->
                <!-- BEGIN PAYMENTS -->
                <div class="col-md-6 col-sm-6">
                    <ul class="list-unstyled list-inline pull-right margin-bottom-15">
                        <li><img
                                src="/templates/upload/western-union.jpg"
                                alt="We accept Western Union"
                                title="We accept Western Union"></li>
                        <li><img
                                src="/templates/upload/american-express.jpg"
                                alt="We accept American Express"
                                title="We accept American Express"></li>
                        <li><img
                                src="/templates/upload/MasterCard.jpg"
                                alt="We accept MasterCard"
                                title="We accept MasterCard"></li>
                        <li><img src="/templates/upload/PayPal.jpg"
                                 alt="We accept PayPal" title="We accept PayPal"></li>
                        <li><img src="/templates/upload/visa.jpg"
                                 alt="We accept Visa" title="We accept Visa"></li>
                    </ul>
                </div>
                <!-- END PAYMENTS -->
            </div>
        </div>
    </div>
    <!-- END FOOTER -->

    <!-- BEGIN fast view of a product -->
    <div id="product-pop-up" style="display: none; width: 700px;">
        <div class="product-page product-pop-up">
            <div class="row">
                <div class="col-md-6 col-sm-6 col-xs-3">
                    <div class="product-main-image">
                        <img src="/templates/upload/model7.jpg"
                             alt="Cool green dress with red bell"
                             class="img-responsive">
                    </div>
                    <div class="product-other-images">
                        <a href="#" class="active"><img alt="Berry Lace Dress"
                                                        src="/templates/upload/model3.jpg"></a>
                        <a href="#"><img alt="Berry Lace Dress"
                                         src="/templates/upload/model4.jpg"></a>
                        <a href="#"><img alt="Berry Lace Dress"
                                         src="/templates/upload/model5.jpg"></a>
                    </div>
                </div>
                <div class="col-md-6 col-sm-6 col-xs-9">
                    <h1>Cool green dress with red bell</h1>
                    <div class="price-availability-block clearfix">
                        <div class="price">
                            <strong><span>$</span>47.00</strong>
                            <em>$<span>62.00</span></em>
                        </div>
                        <div class="availability">
                            Availability: <strong>In Stock</strong>
                        </div>
                    </div>
                    <div class="description">
                        <p>Lorem ipsum dolor ut sit ame dolore adipiscing elit, sed nonumy nibh sed euismod laoreet
                            dolore
                            magna aliquarm erat volutpat
                            Nostrud duis molestie at dolore.</p>
                    </div>
                    <div class="product-page-options">
                        <div class="pull-left">
                            <label class="control-label">Size:</label>
                            <select class="form-control input-sm">
                                <option>L</option>
                                <option>M</option>
                                <option>XL</option>
                            </select>
                        </div>
                        <div class="pull-left">
                            <label class="control-label">Color:</label>
                            <select class="form-control input-sm">
                                <option>Red</option>
                                <option>Blue</option>
                                <option>Black</option>
                            </select>
                        </div>
                    </div>
                    <div class="product-page-cart">
                        <div class="product-quantity">
                            <input id="product-quantity3" type="text" value="1" readonly class="form-control input-sm">
                        </div>
                        <button class="btn btn-primary" type="submit">Add to cart</button>
                        <button class="btn btn-default" type="submit">More details</button>
                    </div>
                </div>

                <div class="sticker sticker-sale"></div>
            </div>
        </div>
    </div>
</div>
<!-- END fast view of a product -->
<script src="../layui/layui.js"></script>

<!-- Load javascripts at bottom, this will reduce page load time -->
<!-- BEGIN CORE PLUGINS (REQUIRED FOR ALL PAGES) -->
<!--[if lt IE 9]>
<script src="../bootstrap/user/plugins/respond.min.js"></script>
<![endif]-->
<script src="../bootstrap/user/plugins/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="../bootstrap/user/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
<script src="../bootstrap/user/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script type="text/javascript" src="../bootstrap/user/plugins/back-to-top.js"></script>
<script type="text/javascript" src="../bootstrap/user/plugins/jQuery-slimScroll/jquery.slimscroll.min.js"></script>
<script type="text/javascript" src='../bootstrap/user/plugins/zoom/jquery.zoom.min.js'></script><!-- product zoom -->
<!-- END CORE PLUGINS -->

<!-- BEGIN PAGE LEVEL JAVASCRIPTS (REQUIRED ONLY FOR CURRENT PAGE) -->
<script src="../bootstrap/user/plugins/layerslider/jQuery/jquery-easing-1.3.js" type="text/javascript"></script>
<script src="../bootstrap/user/plugins/layerslider/jQuery/jquery-transit-modified.js" type="text/javascript"></script>
<script type="text/javascript" src="../bootstrap/user/plugins/fancybox/source/jquery.fancybox.pack.js"></script>
<!-- pop up -->
<script type="text/javascript" src="../bootstrap/user/plugins/bxslider/jquery.bxslider.min.js"></script>
<!-- slider for products -->
<script type="text/javascript" src='../bootstrap/user/plugins/zoom/jquery.zoom.min.js'></script><!-- product zoom -->
<script src="../bootstrap/user/plugins/bootstrap-touchspin/bootstrap.touchspin.js" type="text/javascript"></script>
<script src="../bootstrap/user/plugins/layerslider/js/layerslider.kreaturamedia.jquery.js"
        type="text/javascript"></script>

<!-- Quantity -->


<script src="../bootstrap/js/dept/js/vue.min.js"></script>
<script type="text/javascript" src="../bootstrap/js/project/search.js"></script>
<!--<script type="text/javascript" src="../bootstrap/user/scripts/app.js"></script> -->
<!--<script src="../js/shoppingOrder/js/shoppingOrder.js"></script>-->
<script src="../js/shoppingOrder/js/shoppingOrder.js"></script>
<script type="text/javascript">
    var layer;
        function pay (obj){
            var bigOrderCode = obj.split(',')[0];
            var allPrices = obj.split(',')[1];
            console.info(obj);
            debugger;
         // pay = function (obj) {
            var deliveryAddr=$("input[name='delivery_addr']").val();
            if(deliveryAddr.length<=0){
                 alert('收货地址不能为空!');
                $('.no').show();
                return false;
            }
            $.get("/order/payment?bigOrderCode="+bigOrderCode+"&deliveryAddr="+deliveryAddr+"&allPrices="+allPrices, function (r) {
                console.info(r);
                if (r.Status == 0) {

                    window.location.href = (r.url)
                } else {
                    console.info(r);
                   alert("提交订单失败："+ r.msg);
                }
            });
        }
</script>
<!-- END PAGE LEVEL JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>